<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
		<link rel="shortcut icon" href="favicon.ico" /> 
		<link rel="stylesheet" type="text/css" href="assets/admin/skins/default/style.css" />
		<style>
			.login-form .col .icon.vcode {background-position: -112px -55px;}
			.login-form .col .vimage{position: absolute;display: block;top: 19px;left: 200px;background: url(assets/admin/skins/default/skin_icons.png) no-repeat;cursor: pointer;}
		</style>
	</head>
	<body class="loginbody">
		<form id="loginForm" method="POST">
			<!-- <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" /> -->
			<div style="width: 100%; height: 100%; min-width: 300px; min-height: 260px;"></div>
			<div class="login-wrap">
				<div class="login-logo">LOGO</div>
				<div class="login-form">
					<div class="col">
						<input name="username" type="text" id="username" class="login-input" placeholder="管理员账号" title="管理员账号" /> 
						<label class="icon user" for="username"></label>
					</div>
					<div class="col">
						<input name="password" type="password" id="password" class="login-input" placeholder="管理员密码" title="管理员密码" /> 
						<label class="icon pwd" for="password"></label>
					</div>
					<div class="col">
						<input type="text" name="loginValidateCode" maxlength="5" class="login-input" placeholder="验证码" title="验证码" style="font-weight:bold;margin-bottom:0;" />
						<label class="icon vcode" for="loginValidateCode"></label>
						<img id="validateCode" src="loginValidateCode" class="vimage validateCode" />
					</div>
					
					<div class="col">
<!-- 						<a href="register/index" style="color:white;">注册</a>&emsp; -->
						<a href="pwd/resetPwd" style="color:white;" >忘记密码</a>
					</div>
					
					<div class="col">
						<input type="submit" value="登 录" class="login-btn" />
					</div>
				</div>
				<div class="login-tips">
					<i></i>
					<p id="msgtip" th:text="${param.error!=null}?'验证码或者密码错误':'请输入用户名和密码'">请输入用户名和密码</p>
				</div>
			</div>
			<div class="copy-right">
				<p>版权所有 广州小马信息科技有限公司 Copyright © 2016 - 2017 sharemarking.com Inc. All Rights Reserved.</p>
			</div>
		</form>
		<script type="text/javascript">
			document.getElementById("validateCode").onclick=function(){
				var now=new Date().getTime();
				this.src="loginValidateCode?_t="+now;
			}
		</script>
	</body>
</html>